﻿//***********************************************************************
 //* Module:  TbBstOnlinereportBLL.cs
// * 作者:  曹荣芝
 //* Modified: 2013/5/17
// * Purpose: Definition of the Class XWG.JWBST.AuthBLL.TbBstOnlinereportBLL
// ***********************************************************************/
using System;
using System.Data;
using XWG.JWBST;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using XWG.JWBST.JWBSTEntity;
using XWG.Framework.AuthUtility;
namespace XWG.JWBST.JWBSTBLL
{
	/// <summary>
	/// 
	/// </summary>
	public class TbBstOnlinereportBLL
	{
        #region 删除操作
                /// <summary>
        /// 删除。
        /// </summary>
        /// <param name="reportid">要删除的的主键值。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>是否成功 1 表示成功 负值代表失败</returns>
        public static ResultModel Delete(object reportid,object userid,bool isLog)
        {
               return JWBSTDAL.TbBstOnlinereportDAL.Delete(reportid, userid, isLog);
        }
        #endregion
        #region 根据主键查询一条记录
        /// <summary>
        /// 获取实体
        /// </summary>
        /// <param name="reportid">主键</param>
        /// <returns>用户实体</returns>
        public static TbBstOnlinereport Load(object reportid)
        {
              return JWBSTDAL.TbBstOnlinereportDAL.Load(reportid); 
        }
        #endregion
        #region 查询操作
        /// <summary>
        /// 查询
        /// </summary>
        public static IList<TbBstOnlinereport> SelectList()
        {
            return JWBSTDAL.TbBstOnlinereportDAL.SelectList();
        }
        #endregion
        #region 插入操作
        /// <summary>
        /// 新增。
        /// </summary>
        /// <param name="info">待新增的信息。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>新增是否成功的标示。（1：成功；负值失败）</returns>
        public static ResultModel Insert(TbBstOnlinereport info, object userid, bool isLog)
        {
              return JWBSTDAL.TbBstOnlinereportDAL.Insert(info,userid,isLog);
        }
		#endregion 
        #region 修改操作
        /// <summary>
        /// 修改。
        /// </summary>
        /// <param name="info">待修改的信息。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>修改是否成功的标示。（1：成功；负值失败）</returns>
        public static ResultModel Update(TbBstOnlinereport info, object userid, bool isLog)
        {
           return JWBSTDAL.TbBstOnlinereportDAL.Update(info, userid, isLog);
        }
		#endregion 

        public static bool InsertPicByID(byte[] image, string id)
        {
            return JWBSTDAL.TbBstOnlinereportDAL.InsertPicByID(image, id);
        }

         /// <summary>
        /// 根据ID添加声音
        /// </summary>
        /// <param name="Sound"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public static bool InsertSoundByID(byte[] Sound, string id)
        {
            return JWBSTDAL.TbBstOnlinereportDAL.InsertSoundByID(Sound, id);
        }

        //   /// <summary>
        ///// 根据ID获取报案信息
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public static DataTable GetOneKeyReportID(string id)
        //{
        //    return JWBSTDAL.TbBstOnlinereportDAL.GetOneKeyReportID(id);
        //}

        //  /// <summary>
        ///// 根据ID更新标志位
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public static int UpdateSignByID(string id)
        //{
        //    return JWBSTDAL.TbBstOnlinereportDAL.UpdateSignByID(id);
        //}

        // /// <summary>
        ///// 根据标志位获取在线报案信息
        ///// </summary>
        ///// <returns></returns>
        //public static DataSet GetOneKeyReport()
        //{
        //    return JWBSTDAL.TbBstOnlinereportDAL.GetOneKeyReport();
        //}
	}
}
